package com.zerocarbon.framework.db.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;

import java.util.List;

/**
 * 自定义sql 注入器
 * @author wyf
 * @date 2020年02月19日15:39:49
 */
public class MySqlInjector extends DefaultSqlInjector {
	
    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        return super.getMethodList(mapperClass);
        /*List<AbstractMethod> methodList = super.getMethodList(mapperClass);

        //增加自定义方法
        methodList.add(new InsertBatchSomeColumn(i -> i.getFieldFill() != FieldFill.UPDATE));
        methodList.add(new UpdateAllById(field -> !ArrayUtil.containsAny(new String[]{
        		SuperEntity.CREATE_TIME_COLUMN, SuperEntity.CREATE_PEOPLE_COLUMN
        }, field.getColumn()))); //过滤更新人和更新时间
        
        return methodList;*/
    }
}
